package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Role;

import java.util.Collection;
import java.util.List;

public interface IRoleService {

    List<Role> selectAll();

    /**
     * 验证名称
     * @param id
     * @param name
     * @return
     */
    Boolean selectByName(Long id, String name);


    void saveOrUpdate(Role dept);

    void delete(Long id);

    List<Long> selectByEmpId(Long id);

    Collection<String> selectNameByEmpId(Long empId);
}
